<?php

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

use yii\helpers\Html;

$this->title = $name;
?>
<style type="text/css">
    .site-error {padding: 20px;}
</style>
<div class="site-error">

    <h1>错误</h1>

    <div class="alert alert-danger">
        <?= nl2br(Html::encode($message)) ?>
    </div>

    <div class="d-flex">
        <?= Html::a('返回搜索页面', '/search/search/patient', ['class' => 'btn btn-success mr-3']) ?>
        <?= Html::beginForm(['/site/logout'], 'post'); ?>
        <?= Html::submitButton('重新登录', ['class' => 'btn btn-danger']) ?>
        <?= Html::endForm(); ?>
    </div>

</div>
